LCOV。信息具有SF的绝对路径 您所在的位置:网站首页 svn被锁 cleanup没用 LCOV。信息具有SF的绝对路径

LCOV。信息具有SF的绝对路径

2023-07-15 07:18| 来源: 网络整理| 查看: 265

百度翻译此文   有道翻译此文 问题描述

I need to have relative path as value of SF: parameter in the lcov.info file generated by karma coverage. This is to enable SonarQube to gather the info to display the coverage. Currently, the SF parameter is having complete absolute path , e.g. c:\abc\xyz....\src\bar\foo.js

I need to have SF: src\bar\foo.js

Is there a way to achieve this?

推荐答案

Unfortunately it is still impossible out of the box. To fix the issue you can either:

use istanbul merged with this request, process the output file using tools like sed (example), generate the report from the same machine that Sonar scanning is performed (original advice).


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有